package com.zyf.heixiang.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zyf.heixiang.entity.OrderDetail;
import com.zyf.heixiang.mapper.OrderDetailMapper;
import com.zyf.heixiang.service.OrderDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 24040
 * @name OrderDetailServiceImpl
 * @date 2022-08-01 11:48
 */
@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Override
    public List<OrderDetail> selectByOrderId(long id) {
        LambdaQueryWrapper<OrderDetail> wq = new LambdaQueryWrapper<>();
        wq.eq(OrderDetail::getOrderId,id);
        return this.list(wq);
    }
}
